package com.jade.zsy.base.entity;

import com.jade.bss.db.IdEntity;
import com.jade.zsy.base.common.StatusConstant;
import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * Created with IntelliJ IDEA.
 * User: jinya
 * Date: 2017/5/31
 * Time: 11:07
 * TEL :17701640710   MAIL:2009_jinya@163.com
 * To change this template use File | Settings | File Templates.
 */
@Data
@Entity
@Table(name = "SCF_BASE_POSITION")
public class Position extends IdEntity {
    @Column(name = "code", updatable = true, nullable = false, length = 25)
    private String code; /** 编号 **/
    @Column(name = "name", updatable = true, nullable = false, length = 50)
    private String name; /** 名称 **/
    @Column(name = "status", updatable = true, nullable = false, length = 25)
    private int status= StatusConstant.RECORD_INIT; /** 状态 **/
    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }
}
